package org.edu.modules.oa.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.edu.common.api.vo.Result;
import org.edu.common.aspect.annotation.AutoLog;
import org.edu.modules.oa.entity.VeOaMeetAttenEntity;
import org.edu.modules.oa.service.IVeOaCheckMeetAttenService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

@Api(tags="考勤查询")
@RestController
@RequestMapping("oa/veOaCheckMeetAtten")
@Slf4j
public class VeOaCheckMeetAttenController {
    @Resource
    private IVeOaCheckMeetAttenService iVeOaCheckMeetAttenService;

    // 日志注解
    @AutoLog(value = "考勤查询-显示表格")
    @ApiOperation(value="显示表格", notes="考勤查询-显示表格")
    // 显示表格
    @PostMapping(value = "/showTable")
    public Result<?> showTable(Integer page, Integer pageSize, VeOaMeetAttenEntity veOaMeetAttenEntity){
        HashMap<String, Object> map = iVeOaCheckMeetAttenService.showCheckMeetAtten(page,pageSize,veOaMeetAttenEntity);
        return Result.OK(map);
    }

}
